package com.yangzheandroid.rxmvp.view.activity;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.yangzheandroid.rxmvp.R;
import com.yangzheandroid.rxmvp.base.SimpleActivity;
import com.yangzheandroid.rxmvp.view.activity.customview.MoneyScaleActivity;
import com.yangzheandroid.rxmvp.view.activity.dialog.DialogListActivity;
import com.yangzheandroid.rxmvp.view.activity.web.BasicWebActivity;
import com.yangzheandroid.rxmvp.view.handler.JdGoodsDeatailActivity;

import butterknife.BindView;
import butterknife.OnClick;
import butterknife.Unbinder;

public class MainActivity extends SimpleActivity {

    @BindView(R.id.bt_base_dialog)
    Button mBtBaseDialog;
    @BindView(R.id.bt_custom_view)
    Button mBtCustomView;
    @BindView(R.id.bt_web_loading)
    Button mBtWebLoading;
    @BindView(R.id.bt_jd_goodsdetail)
    Button mBtJdGoodsdetail;
    private Unbinder mUnbinder;


    @Override
    protected int getLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected void initEventAndData() {

    }

    public static final String imageURL = "https://gss0.baidu.com/7LsWdDW5_xN3otqbppnN2DJv/space/pic/item/8718367adab44aed33bf622dba1c8701a08bfb02.jpg";



    @OnClick({R.id.bt_base_dialog, R.id.bt_custom_view, R.id.bt_web_loading,R.id.bt_jd_goodsdetail})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.bt_base_dialog:
                startActivity(new Intent(MainActivity.this, DialogListActivity.class));
                break;
            case R.id.bt_custom_view:
                startActivity(new Intent(MainActivity.this, MoneyScaleActivity.class));
                break;
            case R.id.bt_web_loading:
                startActivity(new Intent(MainActivity.this, BasicWebActivity.class));
                break;
            case R.id.bt_jd_goodsdetail:
                startActivity(new Intent(MainActivity.this, JdGoodsDeatailActivity.class));
                break;
        }
    }

}
